/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version report */
import {
  isShowReportModule,
  isShowReportPerformance
} from '@shb-lib/version';

export default defineComponent({
  name: "version-control-report-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /** 
     * @description 报表 模块 版本控制
    */
    reportVersionControl(): Record<string, boolean> {
      return {
        isShowReportModule: isShowReportModule(this._versionControlMap),
        isShowReportPerformance: isShowReportPerformance(this._versionControlMap)
      }
    },
    _isShowReportModule(): boolean {
      return this.reportVersionControl.isShowReportModule
    },
    _isShowReportPerformance(): boolean {
      return this.reportVersionControl.isShowReportPerformance
    }
  }
})
